package com.handpay.zztong.hp.accountcenter.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.handpay.zztong.hp.R;
import com.handpay.zztong.hp.base.activity.ZZTongActivity;
import com.handpay.zztong.hp.bean.ActionBar;

/**
 * 收款限额
 *
 * @author 李国红
 */
public class TransferCashLimitManagementActivity extends ZZTongActivity {

    private TextView day_transfer_limit;
    private TextView month_transfer_limit;
    private TextView single_debit_card_limit;
    private TextView single_credit_limit;
    private TextView dayTotal_transfer_limit;
    private TextView monthTotal_transfer_limit;
    private TextView singleIC_debit_card_limit;
    private TextView singleIC_credit_limit;

    String dayLimit = null;
    String monthLimit = null;
    String debitCardLimit = null;
    String creditCardLimit = null;
    String dayTotalLimit = null;
    String monthTotalLimit = null;
    String icDebitCardLimit = null;
    String icCreditCardLimit = null;


    @Override
    public ActionBar getActivityActionBar() {
        //leftBar goBack();
        return new ActionBar(this.getString(R.string.Cash_limit), true);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        this.setContentView(R.layout.activity_transfer_cash_limit_management);
        super.onCreate(savedInstanceState);
        day_transfer_limit = (TextView) findViewById(R.id.day_transfer_limit);
        month_transfer_limit = (TextView) findViewById(R.id.month_transfer_limit);
        single_debit_card_limit = (TextView) findViewById(R.id.single_debit_card_limit);
        single_credit_limit = (TextView) findViewById(R.id.single_credit_limit);
        dayTotal_transfer_limit = (TextView) findViewById(R.id.dayTotal_transfer_limit);
        monthTotal_transfer_limit = (TextView) findViewById(R.id.monthTotal_transfer_limit);
        singleIC_debit_card_limit = (TextView) findViewById(R.id.singleIC_debit_card_limit);
        singleIC_credit_limit = (TextView) findViewById(R.id.singleIC_credit_limit);
        Initialization();

    }

    protected boolean isShownTabs() {
        return false;
    }

    /***
     * 初始化基本信息
     */
    private void Initialization() {
        this.dayLimit = getIntent().getStringExtra("dayLimit");
        this.monthLimit = getIntent().getStringExtra("monthLimit");
        this.debitCardLimit = getIntent().getStringExtra("debitCardLimit");
        this.creditCardLimit = getIntent().getStringExtra("creditCardLimit");
        this.dayTotalLimit = getIntent().getStringExtra("dayTotalLimit");
        this.monthTotalLimit = getIntent().getStringExtra("monthTotalLimit");
        this.icDebitCardLimit = getIntent().getStringExtra("icDebitCardLimit");
        this.icCreditCardLimit = getIntent().getStringExtra("icCreditCardLimit");

        if (dayLimit != null && dayLimit.trim().length() > 0
                && monthLimit != null && monthLimit.trim().length() > 0
                && debitCardLimit != null && debitCardLimit.trim().length() > 0
                && creditCardLimit != null && creditCardLimit.trim().length() > 0) {
            day_transfer_limit.setText(dayLimit);
            month_transfer_limit.setText(monthLimit);
            single_debit_card_limit.setText(debitCardLimit);
            single_credit_limit.setText(creditCardLimit);
            dayTotal_transfer_limit.setText(dayTotalLimit);
            monthTotal_transfer_limit.setText(monthTotalLimit);
            singleIC_debit_card_limit.setText(icDebitCardLimit);
            singleIC_credit_limit.setText(icCreditCardLimit);
        }
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}
